import { login, logout, getInfo } from '@/api/login'
import { getToken, setToken, removeToken } from '@/utils/auth'

const mysystem = {
  state: {
    queryParams: {
      pageNum: 1,
      pageSize: 10,
      typeId: null,
      "sysType.typeName": null,
      goodsName: null,
      goodDescription: null,
      goodsPrice: null,
      goodsStatus: 1,
      createBy: null,
      createTime: null,
      updataBy: null,
      updataTime: null,
      remark: null
    },
    userGoodsList: null,
    total: null,
    loading: false,
    //是否展示更多
    isShowMoreType: false,
    //更多分类列表
    moreTypeList: null,
    // 是否显示广告
    isShowAD: true,
    aliPayView: "",
    // 首页广告列表
    adList: null,
  },

  mutations: {
    SET_QUERYPARAMS: (state, queryparams) => {
      state.queryparams = queryparams
    },
    SET_USERGOODSLIST: (state, userGoodsList) => {
      state.userGoodsList = userGoodsList
    },
    SET_TOTAL: (state, total) => {
      state.total = total
    },
  },

  actions: {

  }
}

export default mysystem
